↳ PROLOG
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
sublist2: (b,b)
append3: (f,f,b) (f,b,b)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:
sublist_2_in_gg2(X, Y) -> if_sublist_2_in_1_gg3(X, Y, append_3_in_aag3(P, underscore, Y))
append_3_in_aag3([]_0, Ys, Ys) -> append_3_out_aag3([]_0, Ys, Ys)
append_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_in_aag3(Xs, Ys, Zs))
if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_out_aag3(Xs, Ys, Zs)) -> append_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_gg3(X, Y, append_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_gg4(X, Y, P, append_3_in_agg3(underscore1, X, P))
append_3_in_agg3([]_0, Ys, Ys) -> append_3_out_agg3([]_0, Ys, Ys)
append_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_agg5(X, Xs, Ys, Zs, append_3_in_agg3(Xs, Ys, Zs))
if_append_3_in_1_agg5(X, Xs, Ys, Zs, append_3_out_agg3(Xs, Ys, Zs)) -> append_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_2_gg4(X, Y, P, append_3_out_agg3(underscore1, X, P)) -> sublist_2_out_gg2(X, Y)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
sublist_2_in_gg2(X, Y) -> if_sublist_2_in_1_gg3(X, Y, append_3_in_aag3(P, underscore, Y))
append_3_in_aag3([]_0, Ys, Ys) -> append_3_out_aag3([]_0, Ys, Ys)
append_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_in_aag3(Xs, Ys, Zs))
if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_out_aag3(Xs, Ys, Zs)) -> append_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_gg3(X, Y, append_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_gg4(X, Y, P, append_3_in_agg3(underscore1, X, P))
append_3_in_agg3([]_0, Ys, Ys) -> append_3_out_agg3([]_0, Ys, Ys)
append_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_agg5(X, Xs, Ys, Zs, append_3_in_agg3(Xs, Ys, Zs))
if_append_3_in_1_agg5(X, Xs, Ys, Zs, append_3_out_agg3(Xs, Ys, Zs)) -> append_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_2_gg4(X, Y, P, append_3_out_agg3(underscore1, X, P)) -> sublist_2_out_gg2(X, Y)
SUBLIST_2_IN_GG2(X, Y) -> IF_SUBLIST_2_IN_1_GG3(X, Y, append_3_in_aag3(P, underscore, Y))
SUBLIST_2_IN_GG2(X, Y) -> APPEND_3_IN_AAG3(P, underscore, Y)
APPEND_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APPEND_3_IN_1_AAG5(X, Xs, Ys, Zs, append_3_in_aag3(Xs, Ys, Zs))
APPEND_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND_3_IN_AAG3(Xs, Ys, Zs)
IF_SUBLIST_2_IN_1_GG3(X, Y, append_3_out_aag3(P, underscore, Y)) -> IF_SUBLIST_2_IN_2_GG4(X, Y, P, append_3_in_agg3(underscore1, X, P))
IF_SUBLIST_2_IN_1_GG3(X, Y, append_3_out_aag3(P, underscore, Y)) -> APPEND_3_IN_AGG3(underscore1, X, P)
APPEND_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APPEND_3_IN_1_AGG5(X, Xs, Ys, Zs, append_3_in_agg3(Xs, Ys, Zs))
APPEND_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND_3_IN_AGG3(Xs, Ys, Zs)
sublist_2_in_gg2(X, Y) -> if_sublist_2_in_1_gg3(X, Y, append_3_in_aag3(P, underscore, Y))
append_3_in_aag3([]_0, Ys, Ys) -> append_3_out_aag3([]_0, Ys, Ys)
append_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_in_aag3(Xs, Ys, Zs))
if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_out_aag3(Xs, Ys, Zs)) -> append_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_gg3(X, Y, append_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_gg4(X, Y, P, append_3_in_agg3(underscore1, X, P))
append_3_in_agg3([]_0, Ys, Ys) -> append_3_out_agg3([]_0, Ys, Ys)
append_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_agg5(X, Xs, Ys, Zs, append_3_in_agg3(Xs, Ys, Zs))
if_append_3_in_1_agg5(X, Xs, Ys, Zs, append_3_out_agg3(Xs, Ys, Zs)) -> append_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_2_gg4(X, Y, P, append_3_out_agg3(underscore1, X, P)) -> sublist_2_out_gg2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
SUBLIST_2_IN_GG2(X, Y) -> IF_SUBLIST_2_IN_1_GG3(X, Y, append_3_in_aag3(P, underscore, Y))
SUBLIST_2_IN_GG2(X, Y) -> APPEND_3_IN_AAG3(P, underscore, Y)
APPEND_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APPEND_3_IN_1_AAG5(X, Xs, Ys, Zs, append_3_in_aag3(Xs, Ys, Zs))
APPEND_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND_3_IN_AAG3(Xs, Ys, Zs)
IF_SUBLIST_2_IN_1_GG3(X, Y, append_3_out_aag3(P, underscore, Y)) -> IF_SUBLIST_2_IN_2_GG4(X, Y, P, append_3_in_agg3(underscore1, X, P))
IF_SUBLIST_2_IN_1_GG3(X, Y, append_3_out_aag3(P, underscore, Y)) -> APPEND_3_IN_AGG3(underscore1, X, P)
APPEND_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APPEND_3_IN_1_AGG5(X, Xs, Ys, Zs, append_3_in_agg3(Xs, Ys, Zs))
APPEND_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND_3_IN_AGG3(Xs, Ys, Zs)
sublist_2_in_gg2(X, Y) -> if_sublist_2_in_1_gg3(X, Y, append_3_in_aag3(P, underscore, Y))
append_3_in_aag3([]_0, Ys, Ys) -> append_3_out_aag3([]_0, Ys, Ys)
append_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_in_aag3(Xs, Ys, Zs))
if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_out_aag3(Xs, Ys, Zs)) -> append_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_gg3(X, Y, append_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_gg4(X, Y, P, append_3_in_agg3(underscore1, X, P))
append_3_in_agg3([]_0, Ys, Ys) -> append_3_out_agg3([]_0, Ys, Ys)
append_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_agg5(X, Xs, Ys, Zs, append_3_in_agg3(Xs, Ys, Zs))
if_append_3_in_1_agg5(X, Xs, Ys, Zs, append_3_out_agg3(Xs, Ys, Zs)) -> append_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_2_gg4(X, Y, P, append_3_out_agg3(underscore1, X, P)) -> sublist_2_out_gg2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
APPEND_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND_3_IN_AGG3(Xs, Ys, Zs)
sublist_2_in_gg2(X, Y) -> if_sublist_2_in_1_gg3(X, Y, append_3_in_aag3(P, underscore, Y))
append_3_in_aag3([]_0, Ys, Ys) -> append_3_out_aag3([]_0, Ys, Ys)
append_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_in_aag3(Xs, Ys, Zs))
if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_out_aag3(Xs, Ys, Zs)) -> append_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_gg3(X, Y, append_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_gg4(X, Y, P, append_3_in_agg3(underscore1, X, P))
append_3_in_agg3([]_0, Ys, Ys) -> append_3_out_agg3([]_0, Ys, Ys)
append_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_agg5(X, Xs, Ys, Zs, append_3_in_agg3(Xs, Ys, Zs))
if_append_3_in_1_agg5(X, Xs, Ys, Zs, append_3_out_agg3(Xs, Ys, Zs)) -> append_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_2_gg4(X, Y, P, append_3_out_agg3(underscore1, X, P)) -> sublist_2_out_gg2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
APPEND_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND_3_IN_AGG3(Xs, Ys, Zs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
APPEND_3_IN_AGG2(Ys, ._22(X, Zs)) -> APPEND_3_IN_AGG2(Ys, Zs)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
APPEND_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND_3_IN_AAG3(Xs, Ys, Zs)
sublist_2_in_gg2(X, Y) -> if_sublist_2_in_1_gg3(X, Y, append_3_in_aag3(P, underscore, Y))
append_3_in_aag3([]_0, Ys, Ys) -> append_3_out_aag3([]_0, Ys, Ys)
append_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_in_aag3(Xs, Ys, Zs))
if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_out_aag3(Xs, Ys, Zs)) -> append_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_gg3(X, Y, append_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_gg4(X, Y, P, append_3_in_agg3(underscore1, X, P))
append_3_in_agg3([]_0, Ys, Ys) -> append_3_out_agg3([]_0, Ys, Ys)
append_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_agg5(X, Xs, Ys, Zs, append_3_in_agg3(Xs, Ys, Zs))
if_append_3_in_1_agg5(X, Xs, Ys, Zs, append_3_out_agg3(Xs, Ys, Zs)) -> append_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_2_gg4(X, Y, P, append_3_out_agg3(underscore1, X, P)) -> sublist_2_out_gg2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
APPEND_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND_3_IN_AAG3(Xs, Ys, Zs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
APPEND_3_IN_AAG1(._22(X, Zs)) -> APPEND_3_IN_AAG1(Zs)
From the DPs we obtained the following set of size-change graphs: